package cn.tx.sboot.di;/*
 *
 * @author 陈粒
 * @version 创建时间：2021/8/13 17:26
 */

import cn.tx.sboot.di.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
//Di
@Controller
public class Teacher {
    String name="Dark";
    @Autowired//DI
            Student t;

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", t=" + t +
                '}';
    }
}
